package com.example.demo.retry;
//
//import com.baomidou.mybatisplus.annotation.IdType;
//import com.baomidou.mybatisplus.annotation.TableId;
//import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 方法重试记录表
 * </p>
 *
 * @author 赵儒定
 * @since 2022-3-8
 */
@Getter
@Setter
//@TableName("sys_method_retry_log")
@ApiModel(value = "SysMethodRetryLog对象", description = "方法重试记录表")
public class SysMethodRetryLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键 MD5（执行类+执行方法+执行参数）")
//    @TableId(value = "id", type = IdType.NONE)
    private String id;

    @ApiModelProperty("方法描述")
    private String methodDesc;

    @ApiModelProperty("执行类")
    private String clazz;

    @ApiModelProperty("执行方法")
    private String method;

    @ApiModelProperty("执行参数[{\"String\":\"123456\"}]")
    private String params;

    @ApiModelProperty("执行threadLocalMap参数[{\"String\":\"123456\"}]")
    private String threadLocalMap;

    @ApiModelProperty("重试次数")
    private Integer retryNum;

    @ApiModelProperty("是否异常")
    private Boolean isError;

    @ApiModelProperty("最新执行结果")
    private String result;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;


}
